//获取题集信息
$.get("http://139.199.200.112/dtpr/index.php?exam-master-basic-examsetlist",function (data) {
    var data=JSON.parse(data);
    if(data.code==0){
        var select=$("select[name='examid']");
        data=data.data;
        for(var i=0;i<data.length;i++){
            var option=$("<option value='"+data[i].id+"'>"+data[i].name+"</option>");
            select.append(option);
        }
    }else {
        alert(data.msg);
    }
});

//获取班级信息
$.get("http://139.199.200.112/dtpr/index.php?exam-master-basic-classlist",function (data) {
    var data=JSON.parse(data);
    if(data.code==0){
        var select=$("select[name='classid']");
        data=data.data;
        for(var i=0;i<data.length;i++){
            var option=$("<option value='"+data[i].id+"'>"+data[i].name+"</option>");
            select.append(option);
        }
    }else {
        alert(data.msg);
    }
});
